<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    function max(num1, num2) {
      return num1 > num2 ? num1 : num2;
    }
    function min(num1, num2) {
      return num1 < num2 ? num1 : num2;
    }
    console.log(max(10, 20));
    console.log(min(10, 20));

  </script>
</body>

</html>